home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource4
/
205_01
/
rs.doc
< prev
next >
Wrap
Text File
|
1979-12-31
|
768b
|
25 lines
-------------------------------------------------------------------------------
RS
-------------------------------------------------------------------------------
Format:
rs [< filename]
Purpose:
RS is a filter that removes all white spaces (spaces and TABs) between the
last word and the carriage return at the ends of lines in text files.
Before: After:
last word. ^I[CR] last word.[CR]
end of text. [CR] end of text.[CR]
sentence.^I^I^I^I[CR] sentence.[CR]
Example:
Remove unnecessary spaces and tabs from textfile and place it in newfile.
rs <texfile >newfile